
'''登录'''
url_login = 'http://122.112.167.115:8888/api/back/user/user/login'
cookie = '_gscu_1414964001=28067451ofzb3779; Hm_lvt_4b12decd29370c13fb3f20ac62673e3b=1645354002,1645696177; Hm_lpvt_4' \
         'b12decd29370c13fb3f20ac62673e3b=1645696177; _gscbrs_1414964001=1; zg_did=%7B%22did%22%3A%20%2217e5172c00c7d' \
         '9-04287b92ec9591-f791b31-1fa400-17e5172c00d9c2%22%7D; zg_8e78f905e35d4b2fb05dffe0def01620=%7B%22sid%22%3A%2' \
         '01645696179132%2C%22updated%22%3A%201645696264261%2C%22info%22%3A%201645353960009%2C%22superProperty%22%3A' \
         '%20%22%7B%5C%22%E5%BA%94%E7%94%A8%E5%90%8D%E7%A7%B0%5C%22%3A%20%5C%22%E8%AF%B8%E8%91%9Bio%5C%22%7D%22%2C%22p' \
         'latform%22%3A%20%22%7B%7D%22%2C%22utm%22%3A%20%22%7B%7D%22%2C%22referrerDomain%22%3A%20%22%22%2C%22zs%22%3A%2' \
         '0%2C%22sc%22%3A%200%2C%22firstScreen%22%3A%201645696179132%7D'
phone_login = '13141878773'
passwd_login = '123456'

'''新建卡券'''
creat_card_url = 'http://122.112.167.115:8888/api/back/user/userCard/insertCardTypeDetail'
creat_card_info = {"userId":"843817932847980545","cardServiceType":"00","cardGenreType":"03","cardType":"17","cardBagId":"80897",
                   "surplusCount":1,"useAccountType":0,"cardSum":"20","cardPreferentialSum":"0.01","putawayType":3,
                   "cardPrice":None,"refund":0,"creditsExchange":1,"presentSocre":200,"putawayTime":"","soldoutTime":"",
                   "officialSalesTime":"","agingType":1,"validPeriod":3,"automaticRenewal":1,"sortCoding":None,
                   "zoneAction":"0","storeUniversality":0,"startTime":"","endTime":"","couponRemark":"",
                   "cardInfo":"<p>有有有有有有有有有</p>","cardName":"我来测试洗车","cardSupplier":"00","inventory":0,
                   "cardImage":"https://obs-newretail-app.obs.cn-east-2.myhuaweicloud.com/luckyDrawBg/20220303100518-948883762156924931.png",
                   "cardIntro":"<p>嗡嗡嗡嗡嗡嗡</p>","updator":"843817932847980545"}



selece_card_url = 'http://122.112.167.115:8888/api/back/user/userCard/selectCardTypeDetail'
selece_card_info = {"cardName":"","putawayType":None,"cardServiceType":"","cardSupplier":"","pageNo":6,"pageSize":10}

'''修改卡券'''
delete_card_url = 'http://122.112.167.115:8888/api/back/user/userCard/updateCardTypeDetail'

schema = {
  "type": "object",
  "required": [],
  "properties": {
    "status": {
      "type": "number"
    },
    "data": {
      "type": "object",
      "required": [],
      "properties": {
        "realName": {
          "type": "string"
        },
        "accessToken": {
          "type": "string"
        },
        "isDefaultPassword": {
          "type": "number"
        },
        "userId": {
          "type": "string"
        },
        "username": {
          "type": "string"
        }
      }
    },
    "message": {
      "type": "string"
    }
  }
}

app_putorder_url = 'http://122.112.167.115:8888/api/app/shop/shop-buy-product/addCardOrder'
app_login_url = 'http://122.112.167.115:8888/api/app/user/user/appCodeLogin'
app_login_info = {"mobileCode":"6666","sourceTerminal":"ST-ENOVATE-APP","mobile":"13918019049","system":""}

app_payscore = 'http://122.112.167.115:8888/api/app/order/pay/placeGeneralOrder'
app_select_score_url = 'http://122.112.167.115:8888/api/app/score/scoreUserTotal/queryAllScore'

app_facard_url = 'http://122.112.167.115:8888/api/app/user/userCard/getVehiclePointCard'